package com.example.javaweb1.mapper;

import com.example.javaweb1.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper {
    @Insert({"insert into user(username,password,age) values (#{username},#{password},#{age})"})
    int addUser(User user);

}
